.modal-dialog{
position: absolute;
left: 30%;
//now you must set a margin left under zero - value is a half width your window
margin-left: -0px;
// this same situation is with height - example
height: 500px;
top: 50%;
margin-top: -250px;
} or:#f9f9f9}